package com.hopes.bizz.close.statistic.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 危险品类型数量VO
 * @time 2024/2/16 23:05
 */
@Data
public class GoodsTypeNumChartVO implements Serializable {

    private static final long serialVersionUID = -4804758487497910476L;


    private String index;


    private List<GoodsTypeNumVO> goodsTypeNumList;

    public GoodsTypeNumChartVO(String index) {
        this.index = index;
    }

    public GoodsTypeNumChartVO(String index, List<GoodsTypeNumVO> goodsTypeNumList) {
        this.goodsTypeNumList = goodsTypeNumList;
        this.index = index.length() == 13 ? index + ":00" : index;
    }

    public void setIndex(String index) {
        this.index = index.length() == 13 ? index + ":00" : index;
    }

}
